<?php

/**
 * CreateSpaceForm class.
 * CreateForm is the data structure for keeping
 * createSpace form data. It is used by the 'login' action of 'SiteController'.
 */
class ResourceItemFormModel extends CFormModel {

    public $name;
    public $description;

    /**
     * Declares the validation rules.
     * The rules state that username and password are required,
     * and password needs to be authenticated.
     */
    public function rules() {
        return array(
            // username and password are required
            array('name', 'required'),
                //array('Apps', 'required', 'on' => 'AddApplication'),
        );
    }

    /**
     * Declares attribute labels.
     */
    public function attributeLabels() {
        return array(
            'name' => 'Name:',
            'description' => 'Description:'
        );
    }

}
